home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / OUI / rcs / scroller.cc < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.4 KB  |  80 lines

  1. head    1.2;
  2. access;
  3. symbols;
  4. locks
  5.     dlorre:1.2; strict;
  6. comment    @// @;
  7.  
  8.  
  9. 1.2
  10. date    97.07.14.04.23.32;    author dlorre;    state Exp;
  11. branches;
  12. next    1.1;
  13.  
  14. 1.1
  15. date    96.08.22.02.05.10;    author dlorre;    state Exp;
  16. branches;
  17. next    ;
  18.  
  19.  
  20. desc
  21. @Oui.lib -- Object User Interface
  22. Projet créé en 1994
  23. Auteur: Dominique Lorre
  24. @
  25.  
  26.  
  27. 1.2
  28. log
  29. @*** empty log message ***
  30. @
  31. text
  32. @// $Id$
  33.  
  34. #include <exec/lists.h>
  35. #include <libraries/gadtools.h>
  36.  
  37. #include "gadgets/scroller.h"
  38. #include "gadgetlist.h"
  39.  
  40. #include <proto/gadtools.h>
  41.  
  42. // ========================================================================
  43. // ==========================  SCROLLER CLASS =============================
  44. // ========================================================================
  45.  
  46.  
  47. scroller::scroller(gadgetlist *gl,
  48.                    void (window::*func)(gadget *, unsigned long, unsigned short),
  49.                    long top, long view, long total,
  50.                    unsigned short arrows) : gadget(gl, func)
  51. {
  52.    gad = gl->gad = CreateGadget(SCROLLER_KIND, gl->gad, gl->ng,
  53.             GTSC_Top,   top,
  54.             GTSC_Total, total,
  55.             GTSC_Visible,   view,
  56.             GTSC_Arrows,    arrows,
  57.             GT_Underscore,  '_',
  58.             TAG_END) ;
  59. }
  60.  
  61.  
  62. @
  63.  
  64.  
  65. 1.1
  66. log
  67. @Initial revision
  68. @
  69. text
  70. @d1 2
  71. d9 1
  72. a9 6
  73. extern "C" {
  74. extern struct Library *GadToolsBase ;
  75. struct Gadget *CreateGadget( unsigned long kind, struct Gadget *gad,
  76.         struct NewGadget *ng, Tag tag1, ... );
  77. #include <pragmas/gadtools_pragmas.h>
  78. }
  79. @
  80.